<div>
    <div class="text-center">
        <input type="text" class="form-control" placeholder="检索" ng-model="filterInfos.name">
    </div>
    <div class="text-center">
        <button class="{{searchClass}}" ng-click="init()">重置条件</button>
        <button class="{{searchClass}}" ng-click="submitFunction()">确认</button>
        <button ng-show="companyFilter!=undefined&&companyFilter.companyBaseInfo.name!=''" ng-click="useCompanyFilter=!useCompanyFilter" class="btn btn-{{useCompanyFilter?'success':'default'}}">
            {{useCompanyFilter?"公司联系人":"所有联系人"}}
        </button>
        <button ng-show="companyFilter!=undefined&&companyFilter.companyBaseInfo.name!=''&&useCompanyFilter" ng-click="containChild=!containChild" class="btn btn-{{containChild?'success':'default'}}">
            {{containChild?"包括子公司":"只有本公司"}}
        </button>
    </div>
    <div class="row">
        <div class="col-md-2" style="padding-right:0">
            <div style="padding-right:0;padding-left: 0;margin-left:0;margin-top: 15px">
            <h6 style="margin-left: 0">{{option=="opportunity"?"类型":"商业联系"}}:</h6>
        </div>
        </div>
        <div class="col-md-10">
            <div class="btn-group" style="margin-left: 0;margin-right: 0" >
                <a style="padding-right: 9px;padding-left: 9px" class="btn btn-{{filterInfos.one.a?'primary':'default'}}" ng-click="filterInfos.one.a=!filterInfos.one.a">{{option=="opportunity"?"LOST":"客户"}}</a>
                <a style="padding-right: 9px;padding-left: 9px" class="btn btn-{{filterInfos.one.b?'info':'default'}}" ng-click="filterInfos.one.b=!filterInfos.one.b">{{option=="opportunity"?"WIN":"合作伙伴"}}</a>
                <a style="padding-right: 9px;padding-left: 9px" class="btn btn-{{filterInfos.one.c?'danger':'default'}}" ng-click="filterInfos.one.c=!filterInfos.one.c">{{option=="opportunity"?"OPEN":"竞争对手"}}</a>
                <a style="padding-right: 9px;padding-left: 9px" class="btn btn-{{filterInfos.one.d?'warning':'default'}}" ng-click="filterInfos.one.d=!filterInfos.one.d" ng-show="option!='opportunity'">供应商</a>
                <a style="padding-right: 9px;padding-left: 9px" class="btn btn-{{filterInfos.one.e?'success':'default'}}" ng-click="filterInfos.one.e=!filterInfos.one.e" ng-show="option!='opportunity'">其他</a>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-md-2" style="padding-right:0">
            <div style="padding-right:0;padding-left: 0;margin-left:0;margin-top: 15px">
            <h6 style="margin-left: 0">{{option=="opportunity"?"状态":"重要程度"}}:</h6>
        </div>
        </div>
        <div class="col-md-10">
            <div class="btn-group" style="margin-left: 0;margin-right: 0" >
                <a style="padding-right: 10px;padding-left: 10px" class="btn btn-{{filterInfos.two.a?'success':'default'}}" ng-click="filterInfos.two.a=!filterInfos.two.a" ng-show="option!='opportunity'">{{option=="opportunity"?"Pipelin":"不需要"}}</a>
                <a style="padding-right: 10px;padding-left: 10px" class="btn btn-{{filterInfos.two.b?'info':'default'}}" ng-click="filterInfos.two.b=!filterInfos.two.b" ng-show="option!='opportunity'">{{option=="opportunity"?"Upside":"需要"}}</a>
                <a style="padding-right: 12px;padding-left: 12px" class="btn btn-{{filterInfos.two.c?'warning':'default'}}" ng-click="filterInfos.two.c=!filterInfos.two.c" ng-show="option!='opportunity'">{{option=="opportunity"?"Forecast":"重要"}}</a>
                <a style="padding-right: 10px;padding-left: 10px" class="btn btn-{{filterInfos.two.d?'primary':'default'}}" ng-click="filterInfos.two.d=!filterInfos.two.d" ng-show="option!='opportunity'">很重要</a>
                <a style="padding-right: 10px;padding-left: 10px" class="btn btn-{{filterInfos.two.e?'danger':'default'}}" ng-click="filterInfos.two.e=!filterInfos.two.e" ng-show="option!='opportunity'">极其重要</a>
                <a style="padding-right: 10px;padding-left: 10px" class="btn btn-{{filterInfos.two.a?'success':'default'}}" ng-click="filterInfos.two.a=!filterInfos.two.a;filterInfos.two.b=false;filterInfos.two.c=false" ng-show="option=='opportunity'">Pipelin</a>
                <a style="padding-right: 10px;padding-left: 10px" class="btn btn-{{filterInfos.two.b?'info':'default'}}" ng-click="filterInfos.two.a=false;filterInfos.two.b=!filterInfos.two.b;filterInfos.two.c=false" ng-show="option=='opportunity'">Upside</a>
                <a style="padding-right: 12px;padding-left: 12px" class="btn btn-{{filterInfos.two.c?'warning':'default'}}" ng-click="filterInfos.two.a=false;filterInfos.two.b=false;filterInfos.two.c=!filterInfos.two.c;" ng-show="option=='opportunity'">Forecast</a>

            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-md-2" style="padding-right:0">
            <div style="padding-right:0;padding-left: 0;margin-left:0;margin-top: 15px">
            <h6 style="margin-left: 0">{{option=="opportunity"?"所有权":"友好程度"}}:</h6>
        </div>
        </div>
        <div class="col-md-10">
            <div class=" btn-group" style="margin-left: 0;margin-right: 0" >
                <a style="padding-right: 10px;padding-left: 10px" class="btn btn-{{filterInfos.three.a?'success':'default'}}" ng-click="filterInfos.three.a=!filterInfos.three.a" ng-show="option!='opportunity'">{{option=="opportunity"?"个人":"讨厌"}}</a>
                <a style="padding-right: 10px;padding-left: 10px" class="btn btn-{{filterInfos.three.b?'info':'default'}}" ng-click="filterInfos.three.b=!filterInfos.three.b" ng-show="option!='opportunity'">{{option=="opportunity"?"公司":"烦"}}</a>
                <a style="padding-right: 12px;padding-left: 12px" class="btn btn-{{filterInfos.three.c?'warning':'default'}}" ng-click="filterInfos.three.c=!filterInfos.three.c" ng-show="option!='opportunity'">{{option=="opportunity"?"所有":"认识"}}</a>
                <a style="padding-right: 10px;padding-left: 10px" class="btn btn-{{filterInfos.three.d?'primary':'default'}}" ng-click="filterInfos.three.d=!filterInfos.three.d" ng-show="option!='opportunity'">接受</a>
                <a style="padding-right: 10px;padding-left: 10px" class="btn btn-{{filterInfos.three.e?'danger':'default'}}" ng-click="filterInfos.three.e=!filterInfos.three.e" ng-show="option!='opportunity'">好感</a>
                <a style="padding-right: 10px;padding-left: 10px" class="btn btn-{{filterInfos.three.a?'success':'default'}}" ng-click="filterInfos.three.a=!filterInfos.three.a;filterInfos.three.b=false;filterInfos.three.c=false" ng-show="option=='opportunity'">个人</a>
                <a style="padding-right: 10px;padding-left: 10px" class="btn btn-{{filterInfos.three.b?'info':'default'}}" ng-click="filterInfos.three.a=false;filterInfos.three.b=!filterInfos.three.b;filterInfos.three.c=false" ng-show="option=='opportunity'">公司</a>
                <a style="padding-right: 12px;padding-left: 12px" class="btn btn-{{filterInfos.three.c?'warning':'default'}}" ng-click="filterInfos.three.a=false;filterInfos.three.b=false;filterInfos.three.c=!filterInfos.three.c;" ng-show="option=='opportunity'">所有</a>

            </div>
        </div>
    </div>
    <div class="row" ng-show="option=='opportunity'">
        <div class="col-md-2" style="padding-right:0">
            <div style="padding-right:0;padding-left: 0;margin-left:0;margin-top: 15px">
                <h6 style="margin-left: 0">性质:</h6>
            </div>
        </div>
        <div class="col-md-10">
            <div class=" btn-group" style="margin-left: 0;margin-right: 0" >
                <a style="padding-right: 10px;padding-left: 10px" class="btn btn-{{filterInfos.three.a?'success':'default'}}" ng-click="filterInfos.three.a=!filterInfos.three.a">LEAD</a>
                <a style="padding-right: 10px;padding-left: 10px" class="btn btn-{{filterInfos.three.b?'info':'default'}}" ng-click="filterInfos.three.b=!filterInfos.three.b">OPP</a>
            </div>
        </div>
    </div>
    <table ng-show="isShow!='false'" id="example-stats" class="table table-stats table-condensed table-striped table-sortable">
        <thead>
        <tr>
            <th class="headerSortable headerSortUp">{{option=="contact"?"姓名":option=="company"?"公司名称":option=="opportunity"?"项目":""}}</th>
        </tr>
        </thead>
        <tbody>
            <tr ng-repeat="item in result|filter:infoFilter" ng-click="resultArray[item.id]==undefined?pushItem(item):popItem(item.id)">
                <td style="padding-left: 20px">
                    <span ng-style="resultArray[item.id]==undefined?unchecked:checked">
                        {{option=="contact"?item.baseInfo.name:option=="company"?item.companyBaseInfo.name:option=="opportunity"?item.opportunity.oppName:""}}
                    </span>
                    <i style="margin-left: 20px" class="{{resultArray[item.id]==undefined?'':'fa fa-check'}}"></i>
                </td>
            </tr>
        </tbody>
    </table>
</div>